package com.example.invoke.xsd.xml;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@XmlRootElement(name = "custom")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class CustomConfig implements Serializable {

    @XmlElement(name = "application")
    private ApplicationConfig applicationConfig = new ApplicationConfig();

    @XmlElement(name = "service")
    List<ServiceConfig> serviceConfigList = new ArrayList<>();

    @XmlElement(name = "listener")
    List<ListenerConfig> listenerConfigList = new ArrayList<>();
}
